package com.lby.springcloud.ddd.usercontext.south.adapter.repository;

import com.lby.springcloud.ddd.usercontext.domain.User;

public class UserAdapter {
    public static User change(UserPO po) {
        User user = new User();
        user.setAccount(po.getMobileNo());
        user.setName(po.getNickname());
        user.setPassport(po.getPassword());
        user.setId(po.getUserId());
        return user;
    }
}
